/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * LivroDeProtocolo.java
 *
 * Created on 29/03/2012, 01:18:50
 */
package tela;

import bd.Consultas;
import java.awt.Color;
import java.awt.Cursor;
import java.awt.event.KeyEvent;
import java.io.InputStream;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.Map;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;
import net.sf.jasperreports.engine.JRException;
import net.sf.jasperreports.engine.JasperReport;
import net.sf.jasperreports.engine.util.JRLoader;
import relatorio.ConectaBanco;
import relatorio.ReportUtils;
import tabela.Analise;
import tabela.PedidoServico;

/**
 *
 * @author Edu
 */
public class LivroDeProtocolo extends javax.swing.JPanel {
    private int ERRO = 0;
    private int SUCESSO = 1;
    private int INFO = 2;
    /**
     * Creates new form LivroDeProtocolo
     */
    public LivroDeProtocolo() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        buttonGroup1 = new javax.swing.ButtonGroup();
        jPanel3 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTableLivroProtocolo = new javax.swing.JTable();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jPanel9 = new javax.swing.JPanel();
        jLabel4 = new javax.swing.JLabel();
        jButtonImprimeLivro = new javax.swing.JButton();
        jFormattedTextFieldAnoLivro = new javax.swing.JFormattedTextField();
        jLabel27 = new javax.swing.JLabel();
        jFormattedTextFieldData = new javax.swing.JFormattedTextField();
        jLabel28 = new javax.swing.JLabel();
        jFormattedTextFieldData1 = new javax.swing.JFormattedTextField();
        jRadioButton1 = new javax.swing.JRadioButton();
        jRadioButton2 = new javax.swing.JRadioButton();
        jButton3 = new javax.swing.JButton();
        jScrollPane6 = new javax.swing.JScrollPane();
        mensagens = new javax.swing.JTextArea();

        setBackground(new java.awt.Color(255, 255, 255));
        setBorder(javax.swing.BorderFactory.createEtchedBorder());

        jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(153, 153, 153), 2, true), "Dados do Protocolo", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Aharoni", 3, 14), java.awt.Color.gray)); // NOI18N

        jTableLivroProtocolo.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        jTableLivroProtocolo.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Data", "Lote", "Sc/Kg", "Espécie", "Cultivar", "Requerente", "N. Amostra", "Tipo Análise", "Safra", "Categoria", "Obs", "BAS/I.R."
            }
        ));
        jScrollPane1.setViewportView(jTableLivroProtocolo);

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 1214, Short.MAX_VALUE)
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 505, Short.MAX_VALUE)
        );

        jLabel6.setBackground(new java.awt.Color(255, 255, 255));
        jLabel6.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        jLabel6.setText("Livro de Protocolo");

        jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/figura/seta.png"))); // NOI18N
        jLabel7.setMinimumSize(new java.awt.Dimension(10, 256));

        jPanel9.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(153, 153, 153), 2, true), "Livro de Protocolo", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Arial", 3, 14), java.awt.Color.gray)); // NOI18N

        jLabel4.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        jLabel4.setText("Ano:");

        jButtonImprimeLivro.setText("Imprimir livro de protocolo");
        jButtonImprimeLivro.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonImprimeLivroActionPerformed(evt);
            }
        });

        jFormattedTextFieldAnoLivro.setEditable(false);
        try {
            jFormattedTextFieldAnoLivro.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter("####")));
        } catch (java.text.ParseException ex) {
            ex.printStackTrace();
        }

        jLabel27.setText("de");

        jFormattedTextFieldData.setEditable(false);
        try {
            jFormattedTextFieldData.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter("##/##/####")));
        } catch (java.text.ParseException ex) {
            ex.printStackTrace();
        }

        jLabel28.setText("à");

        jFormattedTextFieldData1.setEditable(false);
        try {
            jFormattedTextFieldData1.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter("##/##/####")));
        } catch (java.text.ParseException ex) {
            ex.printStackTrace();
        }

        buttonGroup1.add(jRadioButton1);
        jRadioButton1.setText("Busca por periodo");
        jRadioButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jRadioButton1ActionPerformed(evt);
            }
        });

        buttonGroup1.add(jRadioButton2);
        jRadioButton2.setText("Busca por Ano");
        jRadioButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jRadioButton2ActionPerformed(evt);
            }
        });

        jButton3.setText("Buscar");
        jButton3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton3ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
        jPanel9.setLayout(jPanel9Layout);
        jPanel9Layout.setHorizontalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addComponent(jButton3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButtonImprimeLivro, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel9Layout.createSequentialGroup()
                        .addComponent(jLabel27)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jFormattedTextFieldData, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel28)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jFormattedTextFieldData1, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jLabel4)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jFormattedTextFieldAnoLivro, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel9Layout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addComponent(jRadioButton1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jRadioButton2)
                        .addGap(48, 48, 48))))
        );
        jPanel9Layout.setVerticalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jRadioButton1)
                    .addComponent(jRadioButton2))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel27)
                    .addComponent(jLabel28)
                    .addComponent(jFormattedTextFieldData, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jFormattedTextFieldData1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel4)
                    .addComponent(jFormattedTextFieldAnoLivro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 20, Short.MAX_VALUE)
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonImprimeLivro)
                    .addComponent(jButton3))
                .addContainerGap())
        );

        mensagens.setEditable(false);
        mensagens.setBackground(new java.awt.Color(204, 204, 204));
        mensagens.setColumns(20);
        mensagens.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
        mensagens.setForeground(new java.awt.Color(204, 0, 0));
        mensagens.setRows(1);
        mensagens.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        jScrollPane6.setViewportView(mensagens);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(37, 37, 37)
                        .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 211, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addGap(47, 47, 47)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                                .addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 903, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                .addGap(0, 34, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jLabel6)
                            .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(83, Short.MAX_VALUE))
        );
    }// </editor-fold>//GEN-END:initComponents

    private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed
        if(jRadioButton1.isSelected() == false  && jRadioButton2.isSelected() == false)
            {
                String mensagem = "Selecione um tipo de busca para visualizar o livro de protocolo";
                mensagem(mensagem, INFO);
                return;
            }
        if(jRadioButton1.isSelected() == true)
            {
                if (jFormattedTextFieldData.getText().equals("  /  /    ") || jFormattedTextFieldData1.getText().equals("  /  /    ")) {
                String mensagem = "Informe um periodo para visualizar o livro de protocolo";
                mensagem(mensagem, INFO);
                return;
                }
                else{
                    String dataInicio = jFormattedTextFieldData.getText().toString();
                    String dataFim = jFormattedTextFieldData1.getText().toString();
        
                    DefaultTableModel modell = (DefaultTableModel) jTableLivroProtocolo.getModel();
        while (modell.getRowCount() > 0) {
            modell.removeRow(0);
        }

        String sql = "from PedidoServico where dataPedidoServico BETWEEN'" + dataInicio + "' and '"+ dataFim +"'";
        for(Object o : Consultas.getListObjetos(sql)){
            PedidoServico ped = (PedidoServico) o;
            DefaultTableModel model = (DefaultTableModel) jTableLivroProtocolo.getModel();
                for(Object q : ped.getAnalises()){
                    Analise ana = (Analise) q;
                    model.addRow(new String[]{
                       ped.getDataPedidoServico(),
                       ana.getLote(),
                       ana.getSckg(),
                       ana.getEspecie(),
                       ana.getCultivar(),
                       ped.getCliente().getNomeCliente(),
                       ana.getIdAnalise(),
                       ana.getTipoAnalise(),
                       ana.getSafra(),
                       ana.getCategoria(),
                       ana.getObservacao(),
                       ana.getBasir()}); 
                   }
                }
                }
            }
        if(jRadioButton2.isSelected() == true)
        {
            if (jFormattedTextFieldAnoLivro.getText().equals("    ")) {
                String mensagem = "Informe o ano para visualizar o livro de protocolo";
                mensagem(mensagem, INFO);
                return;
                }
            else
            {
                String aux = jFormattedTextFieldAnoLivro.getText().toString();
                String aux2 = "/%";    
                String ano = aux+aux2;
        
                    DefaultTableModel modell = (DefaultTableModel) jTableLivroProtocolo.getModel();
        while (modell.getRowCount() > 0) {
            modell.removeRow(0);
        }

        String sql = "from Analise where idAnalise like'" +ano+ "' order by idAnalise";
        for(Object o : Consultas.getListObjetos(sql)){
            DefaultTableModel model = (DefaultTableModel) jTableLivroProtocolo.getModel();
                    Analise ana = (Analise) o;
                    model.addRow(new String[]{
                       ana.getPedidoServico().getDataPedidoServico(),
                       ana.getLote(),
                       ana.getSckg(),
                       ana.getEspecie(),
                       ana.getCultivar(),
                       ana.getPedidoServico().getCliente().getNomeCliente(),
                       ana.getIdAnalise(),
                       ana.getTipoAnalise(),
                       ana.getSafra(),
                       ana.getCategoria(),
                       ana.getObservacao(),
                       ana.getBasir()}); 
            }           
        }         
      }
    }//GEN-LAST:event_jButton3ActionPerformed

    private void jRadioButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButton2ActionPerformed
        jFormattedTextFieldData.setEditable(false);
        jFormattedTextFieldData1.setEditable(false);
        jFormattedTextFieldAnoLivro.setEditable(true);
        jFormattedTextFieldData.setValue("");
        jFormattedTextFieldData1.setValue("");
    }//GEN-LAST:event_jRadioButton2ActionPerformed

    private void jRadioButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButton1ActionPerformed
        jFormattedTextFieldData.setEditable(true);
        jFormattedTextFieldData1.setEditable(true);
        jFormattedTextFieldAnoLivro.setEditable(false);
        jFormattedTextFieldAnoLivro.setValue("");
    }//GEN-LAST:event_jRadioButton1ActionPerformed

    private void jButtonImprimeLivroActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonImprimeLivroActionPerformed
        if (jRadioButton1.isSelected() == false && jRadioButton2.isSelected() == false) {
            String mensagem = "Selecione um tipo de busca para gerar o livro de protocolo";
            mensagem(mensagem, INFO);
            return;
        }
        if (jRadioButton1.isSelected() == true) {
            if (jFormattedTextFieldData.getText().equals("  /  /    ") || jFormattedTextFieldData1.getText().equals("  /  /    ")) {
                String mensagem = "Informe um periodo para gerar o livro de protocolo";
                mensagem(mensagem, INFO);
                return;
            } else {
                String dataInicio = jFormattedTextFieldData.getText().toString();
                String dataFim = jFormattedTextFieldData1.getText().toString();

                setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
                //String arquivo = "relatorios/relatorios/LivroDeProtocolo.jasper";
                InputStream arquivoo = this.getClass().getClassLoader().getResourceAsStream("relatorios/relatorios/LivroDeProtocoloData.jasper");
                // InputStream inputStream = getClass().getResourceAsStream("C:/Users/Eduardo/Documents/NetBeansProjects/Softlabs/relatorios/relatorios/FichaPedidoServico.jasper");
                Map parametros = new HashMap();
                parametros.put("data_inicio", dataInicio);
                parametros.put("data_fim", dataFim);

                try {
                    JasperReport inputStream = (JasperReport) JRLoader.loadObject(arquivoo);
                    ReportUtils.openReport("Livro de Protocolo", inputStream, parametros, ConectaBanco.getPostgreConnection());
                    setCursor(Cursor.getDefaultCursor());
                } catch (SQLException exc) {
                    exc.printStackTrace();
                } catch (JRException exc) {
                    exc.printStackTrace();
                }
            }
        } else {
            if (jFormattedTextFieldAnoLivro.getText().equals("    ")) {
                String mensagem = "Informe o ano para gerar o livro de protocolo";
                mensagem(mensagem, INFO);
                return;
            } else {
                String aux = jFormattedTextFieldAnoLivro.getText().toString();
                String anoLivro;
                anoLivro = aux + "/%";

                setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
                //String arquivo = "relatorios/relatorios/LivroDeProtocolo.jasper";
                InputStream arquivoo = this.getClass().getClassLoader().getResourceAsStream("relatorios/LivroDeProtocolo.jasper");
                // InputStream inputStream = getClass().getResourceAsStream("C:/Users/Eduardo/Documents/NetBeansProjects/Softlabs/relatorios/relatorios/FichaPedidoServico.jasper");
                Map parametros = new HashMap();
                parametros.put("ano_livro", anoLivro);

                try {
                    JasperReport inputStream = (JasperReport) JRLoader.loadObject(arquivoo);
                    ReportUtils.openReport("Livro de Protocolo", inputStream, parametros, ConectaBanco.getPostgreConnection());
                    setCursor(Cursor.getDefaultCursor());
                } catch (SQLException exc) {
                    exc.printStackTrace();
                } catch (JRException exc) {
                    exc.printStackTrace();
                }
            }
        }
    }//GEN-LAST:event_jButtonImprimeLivroActionPerformed

    
    private void mensagem(String msg, int tipo) {
        if (tipo == 0) { //erro
            mensagens.setForeground(Color.RED);
            mensagens.setText(msg);
        } else if (tipo == 1) { //sucesso
            mensagens.setForeground(Color.BLUE);
            mensagens.setText(msg);
        }
        if (tipo == 2) { //info
            mensagens.setForeground(Color.black);
            mensagens.setText(msg);
        }
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.ButtonGroup buttonGroup1;
    private javax.swing.JButton jButton3;
    private javax.swing.JButton jButtonImprimeLivro;
    private javax.swing.JFormattedTextField jFormattedTextFieldAnoLivro;
    private javax.swing.JFormattedTextField jFormattedTextFieldData;
    private javax.swing.JFormattedTextField jFormattedTextFieldData1;
    private javax.swing.JLabel jLabel27;
    private javax.swing.JLabel jLabel28;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel9;
    private javax.swing.JRadioButton jRadioButton1;
    private javax.swing.JRadioButton jRadioButton2;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane6;
    private javax.swing.JTable jTableLivroProtocolo;
    private javax.swing.JTextArea mensagens;
    // End of variables declaration//GEN-END:variables

    

    
}
